<template>
  <div class="card content-box">
    <iframe :src="frameSrc" class="full-iframe"></iframe>
  </div>
</template>

<script setup lang="ts">
import { ref, unref } from "vue";
import { useRoute } from "vue-router";

const currentRoute = useRoute();
const frameSrc = ref<string>("");

if (unref(currentRoute.meta)?.link) {
  frameSrc.value = unref(currentRoute.meta)?.link as string;
}
</script>

<style scoped lang="scss">
.full-iframe {
  width: 100%;
  height: 100%;
}
</style>
